package com.example.communitypro.service;

import com.example.communitypro.pojo.Post;
import com.example.communitypro.util.result.Result;

import java.awt.geom.RectangularShape;

public interface PostService {
    
    Result addPost(Post record);


    Result dropPost(Integer postNo);


    Result modifyPost(Post record);


    Result queryPost(Integer postNo);

    Result queryPostAndUser(Integer postNo,Integer user_no);

    Result queryHotCommunityPost(Integer community_no);

    Result queryCommunityPost(Integer community_no);

    Result queryCommunityPassPost(Integer community_no,Integer post_status);

    Result queryUserPost(Integer user_no);

    Result queryPassPost(Integer user_no,Integer post_status);

    Result queryAllPost();

    Result queryHotPost();

    Result queryAllPass(Integer post_status);

    Result find(Integer user_no);

    Result recommend(Integer user_no);

    Result selectPost(String keyword);



    public Result like(Integer user_no);
    public int countByDate(String date);
    public Result findAllPost();
}
